//
//  ShoppingCartModel.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/5.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "ShoppingCartModel.h"

@implementation ShoppingCartModel
-(instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init])
    {
        self.imageName = dict[@"fileName"];//商品图片
        self.title = dict[@"goodName"];//商品标题
        self.goodsPrice = dict[@"gold"];//商品单价
        self.goodsNum = [dict[@"buyCount"]intValue];//商品个数
        self.isSelected = NO;//是否选中状态
    }
    return  self;
}
@end
